// Add sldl codes for VT districts using district names 

// source: Census Gazeteer, 2010 and 2014
// https://www.census.gov/geographies/reference-files/time-series/geo/gazetteer-files.2014.html#list-tab-264479560

// note: called in 0_5_statelegislators.do

/// sldl then matched to codes generated in sldlcodes.do
replace sldl="1" if sldl=="Addison 1" & sab=="VT" & year==2017
replace sldl="2" if sldl=="Addison 2" & sab=="VT" & year==2017
replace sldl="3" if sldl=="Addison 3" & sab=="VT" & year==2017
replace sldl="4" if sldl=="Addison 4" & sab=="VT" & year==2017
replace sldl="5" if sldl=="Addison 5" & sab=="VT" & year==2017
replace sldl="6" if sldl=="Addison-Rutland" & sab=="VT" & year==2017
replace sldl="7" if sldl=="Bennington 1" & sab=="VT" & year==2017
replace sldl="8" if sldl=="Bennington 3" & sab=="VT" & year==2017
replace sldl="9" if sldl=="Bennington 4" & sab=="VT" & year==2017
replace sldl="10" if sldl=="Bennington-Rutland" & sab=="VT" & year==2017
replace sldl="11" if sldl=="Bennington 2-1" & sab=="VT" & year==2017
replace sldl="12" if sldl=="Bennington 2-2" & sab=="VT" & year==2017
replace sldl="13" if sldl=="Chittenden 1" & sab=="VT" & year==2017
replace sldl="14" if sldl=="Chittenden 2" & sab=="VT" & year==2017
replace sldl="15" if sldl=="Chittenden 3" & sab=="VT" & year==2017
replace sldl="16" if sldl=="Chittenden 10" & sab=="VT" & year==2017
replace sldl="17" if sldl=="Chittenden 4-1" & sab=="VT" & year==2017
replace sldl="18" if sldl=="Chittenden 4-2" & sab=="VT" & year==2017
replace sldl="19" if sldl=="Chittenden 5-1" & sab=="VT" & year==2017
replace sldl="20" if sldl=="Chittenden 5-2" & sab=="VT" & year==2017
replace sldl="21" if sldl=="Chittenden 6-1" & sab=="VT" & year==2017
replace sldl="22" if sldl=="Chittenden 6-2" & sab=="VT" & year==2017
replace sldl="23" if sldl=="Chittenden 6-3" & sab=="VT" & year==2017
replace sldl="24" if sldl=="Chittenden 6-4" & sab=="VT" & year==2017
replace sldl="25" if sldl=="Chittenden 6-5" & sab=="VT" & year==2017
replace sldl="26" if sldl=="Chittenden 6-6" & sab=="VT" & year==2017
replace sldl="27" if sldl=="Chittenden 6-7" & sab=="VT" & year==2017
replace sldl="28" if sldl=="Chittenden 7-1" & sab=="VT" & year==2017
replace sldl="29" if sldl=="Chittenden 7-2" & sab=="VT" & year==2017
replace sldl="30" if sldl=="Chittenden 7-3" & sab=="VT" & year==2017
replace sldl="31" if sldl=="Chittenden 7-4" & sab=="VT" & year==2017
replace sldl="32" if sldl=="Chittenden 8-1" & sab=="VT" & year==2017
replace sldl="33" if sldl=="Chittenden 8-2" & sab=="VT" & year==2017
replace sldl="34" if sldl=="Chittenden 8-3" & sab=="VT" & year==2017
replace sldl="35" if sldl=="Chittenden 9-1" & sab=="VT" & year==2017
replace sldl="36" if sldl=="Chittenden 9-2" & sab=="VT" & year==2017
replace sldl="37" if sldl=="Caledonia 1" & sab=="VT" & year==2017
replace sldl="38" if sldl=="Caledonia 2" & sab=="VT" & year==2017
replace sldl="39" if sldl=="Caledonia 3" & sab=="VT" & year==2017
replace sldl="40" if sldl=="Caledonia 4" & sab=="VT" & year==2017
replace sldl="41" if sldl=="Caledonia-Washington" & sab=="VT" & year==2017
replace sldl="42" if sldl=="Essex-Caledonia" & sab=="VT" & year==2017
replace sldl="43" if sldl=="Essex-Caledonia-Orleans" & sab=="VT" & year==2017
replace sldl="44" if sldl=="Franklin 1" & sab=="VT" & year==2017
replace sldl="45" if sldl=="Franklin 2" & sab=="VT" & year==2017
replace sldl="46" if sldl=="Franklin 4" & sab=="VT" & year==2017
replace sldl="47" if sldl=="Franklin 5" & sab=="VT" & year==2017
replace sldl="48" if sldl=="Franklin 6" & sab=="VT" & year==2017
replace sldl="49" if sldl=="Franklin 7" & sab=="VT" & year==2017
replace sldl="50" if sldl=="Franklin 3-1" & sab=="VT" & year==2017
replace sldl="51" if sldl=="Franklin 3-2" & sab=="VT" & year==2017
replace sldl="52" if sldl=="Grandisle-Chittenden" & sab=="VT" & year==2017
replace sldl="53" if sldl=="Lamoille 1" & sab=="VT" & year==2017
replace sldl="54" if sldl=="Lamoille 2" & sab=="VT" & year==2017
replace sldl="55" if sldl=="Lamoille 3" & sab=="VT" & year==2017
replace sldl="56" if sldl=="Lamoille-Washington" & sab=="VT" & year==2017
replace sldl="57" if sldl=="Orange 1" & sab=="VT" & year==2017
replace sldl="58" if sldl=="Orange 2" & sab=="VT" & year==2017
replace sldl="59" if sldl=="Orange-Caledonia" & sab=="VT" & year==2017
replace sldl="60" if sldl=="Orleans-Lamoille" & sab=="VT" & year==2017
replace sldl="61" if sldl=="Orleans-Caledonia" & sab=="VT" & year==2017
replace sldl="62" if sldl=="Orleans 1" & sab=="VT" & year==2017
replace sldl="63" if sldl=="Orleans 2" & sab=="VT" & year==2017
replace sldl="64" if sldl=="Orange-Washington-Addison" & sab=="VT" & year==2017
replace sldl="65" if sldl=="Rutland 1" & sab=="VT" & year==2017
replace sldl="66" if sldl=="Rutland 2" & sab=="VT" & year==2017
replace sldl="67" if sldl=="Rutland 3" & sab=="VT" & year==2017
replace sldl="68" if sldl=="Rutland 4" & sab=="VT" & year==2017
replace sldl="69" if sldl=="Rutland 6" & sab=="VT" & year==2017
replace sldl="70" if sldl=="Rutland-Bennington" & sab=="VT" & year==2017
replace sldl="71" if sldl=="Rutland-Windsor 1" & sab=="VT" & year==2017
replace sldl="72" if sldl=="Rutland 5-1" & sab=="VT" & year==2017
replace sldl="73" if sldl=="Rutland 5-2" & sab=="VT" & year==2017
replace sldl="74" if sldl=="Rutland 5-3" & sab=="VT" & year==2017
replace sldl="75" if sldl=="Rutland 5-4" & sab=="VT" & year==2017
replace sldl="76" if sldl=="Rutland-Windsor 2" & sab=="VT" & year==2017
replace sldl="77" if sldl=="Windham 1" & sab=="VT" & year==2017
replace sldl="78" if sldl=="Windham 3" & sab=="VT" & year==2017
replace sldl="79" if sldl=="Windham 4" & sab=="VT" & year==2017
replace sldl="80" if sldl=="Windham 5" & sab=="VT" & year==2017
replace sldl="81" if sldl=="Windham 6" & sab=="VT" & year==2017
replace sldl="82" if sldl=="Windham 2-1" & sab=="VT" & year==2017
replace sldl="83" if sldl=="Windham 2-2" & sab=="VT" & year==2017
replace sldl="84" if sldl=="Windham 2-3" & sab=="VT" & year==2017
replace sldl="85" if sldl=="Washington 1" & sab=="VT" & year==2017
replace sldl="86" if sldl=="Washington 2" & sab=="VT" & year==2017
replace sldl="87" if sldl=="Washington 3" & sab=="VT" & year==2017
replace sldl="88" if sldl=="Washington 4" & sab=="VT" & year==2017
replace sldl="89" if sldl=="Washington 5" & sab=="VT" & year==2017
replace sldl="90" if sldl=="Washington 6" & sab=="VT" & year==2017
replace sldl="91" if sldl=="Washington 7" & sab=="VT" & year==2017
replace sldl="92" if sldl=="Washington-Chittenden" & sab=="VT" & year==2017
replace sldl="93" if sldl=="Windham-Bennington-Windsor" & sab=="VT" & year==2017
replace sldl="94" if sldl=="Windham-Bennington" & sab=="VT" & year==2017
replace sldl="95" if sldl=="Windsor 1" & sab=="VT" & year==2017
replace sldl="96" if sldl=="Windsor 2" & sab=="VT" & year==2017
replace sldl="97" if sldl=="Windsor 5" & sab=="VT" & year==2017
replace sldl="98" if sldl=="Windsor-Rutland" & sab=="VT" & year==2017
replace sldl="99" if sldl=="Windsor 3-1" & sab=="VT" & year==2017
replace sldl="100" if sldl=="Windsor 3-2" & sab=="VT" & year==2017
replace sldl="101" if sldl=="Windsor 4-1" & sab=="VT" & year==2017
replace sldl="102" if sldl=="Windsor 4-2" & sab=="VT" & year==2017
replace sldl="103" if sldl=="Windsor-Orange 1" & sab=="VT" & year==2017
replace sldl="104" if sldl=="Windsor-Orange 2" & sab=="VT" & year==2017
replace sldl="1" if sldl=="Chittenden 3-10" & sab=="VT" & (year==2012 | year==2007)
replace sldl="2" if sldl=="Addison 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="3" if sldl=="Addison 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="4" if sldl=="Addison 3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="5" if sldl=="Addison 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="6" if sldl=="Addison 5" & sab=="VT" & (year==2012 | year==2007)
replace sldl="7" if sldl=="Addison-Rutland 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="8" if sldl=="Bennington 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="9" if sldl=="Bennington 3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="10" if sldl=="Bennington 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="11" if sldl=="Bennington 5" & sab=="VT" & (year==2012 | year==2007)
replace sldl="12" if sldl=="Bennington 2-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="13" if sldl=="Bennington 2-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="14" if sldl=="Bennington-Rutland 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="15" if sldl=="Chittenden 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="16" if sldl=="Chittenden 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="17" if sldl=="Chittenden 8" & sab=="VT" & (year==2012 | year==2007)
replace sldl="18" if sldl=="Chittenden 9" & sab=="VT" & (year==2012 | year==2007)
replace sldl="19" if sldl=="Chittenden 1-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="20" if sldl=="Chittenden 1-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="21" if sldl=="Chittenden 3-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="22" if sldl=="Chittenden 3-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="23" if sldl=="Chittenden 3-3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="24" if sldl=="Chittenden 3-4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="25" if sldl=="Chittenden 3-5" & sab=="VT" & (year==2012 | year==2007)
replace sldl="26" if sldl=="Chittenden 3-6" & sab=="VT" & (year==2012 | year==2007)
replace sldl="27" if sldl=="Chittenden 3-7" & sab=="VT" & (year==2012 | year==2007)
replace sldl="28" if sldl=="Chittenden 3-8" & sab=="VT" & (year==2012 | year==2007)
replace sldl="29" if sldl=="Chittenden 3-9" & sab=="VT" & (year==2012 | year==2007)
replace sldl="30" if sldl=="Chittenden 5-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="31" if sldl=="Chittenden 5-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="32" if sldl=="Chittenden 6-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="33" if sldl=="Chittenden 6-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="34" if sldl=="Chittenden 6-3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="35" if sldl=="Chittenden 7-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="36" if sldl=="Chittenden 7-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="37" if sldl=="Caledonia 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="38" if sldl=="Caledonia 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="39" if sldl=="Caledonia 3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="40" if sldl=="Caledonia 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="41" if sldl=="Caledonia-Washington 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="42" if sldl=="Essex-Caledonia 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="43" if sldl=="Essex-Caledonia-Orleans 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="44" if sldl=="Franklin 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="45" if sldl=="Franklin 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="46" if sldl=="Franklin 3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="47" if sldl=="Franklin 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="48" if sldl=="Franklin 5" & sab=="VT" & (year==2012 | year==2007)
replace sldl="49" if sldl=="Franklin 6" & sab=="VT" & (year==2012 | year==2007)
replace sldl="50" if sldl=="Grandisle-Chittenden 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="51" if sldl=="Lamoille 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="52" if sldl=="Lamoille 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="53" if sldl=="Lamoille 3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="54" if sldl=="Lamoille 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="55" if sldl=="Lamoille-Washington 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="56" if sldl=="Orange-Addison 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="57" if sldl=="Orange 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="58" if sldl=="Orange 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="59" if sldl=="Orange-Caledonia 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="60" if sldl=="Orleans 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="61" if sldl=="Orleans 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="62" if sldl=="Orleans-Caledonia 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="63" if sldl=="Orleans-Franklin 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="64" if sldl=="Rutland 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="65" if sldl=="Rutland 3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="66" if sldl=="Rutland 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="67" if sldl=="Rutland 6" & sab=="VT" & (year==2012 | year==2007)
replace sldl="68" if sldl=="Rutland 7" & sab=="VT" & (year==2012 | year==2007)
replace sldl="69" if sldl=="Rutland 8" & sab=="VT" & (year==2012 | year==2007)
replace sldl="70" if sldl=="Rutland 1-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="71" if sldl=="Rutland 1-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="72" if sldl=="Rutland 5-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="73" if sldl=="Rutland 5-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="74" if sldl=="Rutland 5-3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="75" if sldl=="Rutland 5-4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="76" if sldl=="Rutland-Windsor 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="77" if sldl=="Washington 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="78" if sldl=="Washington 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="79" if sldl=="Washington 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="80" if sldl=="Washington 5" & sab=="VT" & (year==2012 | year==2007)
replace sldl="81" if sldl=="Washington 6" & sab=="VT" & (year==2012 | year==2007)
replace sldl="82" if sldl=="Washington 7" & sab=="VT" & (year==2012 | year==2007)
replace sldl="83" if sldl=="Washington 3-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="84" if sldl=="Washington 3-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="85" if sldl=="Washington 3-3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="86" if sldl=="Washington-Chittenden 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="87" if sldl=="Windham 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="88" if sldl=="Windham 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="89" if sldl=="Windham 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="90" if sldl=="Windham 5" & sab=="VT" & (year==2012 | year==2007)
replace sldl="91" if sldl=="Windham 6" & sab=="VT" & (year==2012 | year==2007)
replace sldl="92" if sldl=="Windham 3-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="93" if sldl=="Windham 3-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="94" if sldl=="Windham 3-3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="95" if sldl=="Windham-Bennington 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="96" if sldl=="Windham-Bennington-Windsor 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="97" if sldl=="Windsor 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="98" if sldl=="Windsor 3" & sab=="VT" & (year==2012 | year==2007)
replace sldl="99" if sldl=="Windsor 4" & sab=="VT" & (year==2012 | year==2007)
replace sldl="100" if sldl=="Windsor 5" & sab=="VT" & (year==2012 | year==2007)
replace sldl="101" if sldl=="Windsor 1-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="102" if sldl=="Windsor 1-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="103" if sldl=="Windsor 6-1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="104" if sldl=="Windsor 6-2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="105" if sldl=="Windsor-Orange 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="106" if sldl=="Windsor-Orange 2" & sab=="VT" & (year==2012 | year==2007)
replace sldl="107" if sldl=="Windsor-Rutland 1" & sab=="VT" & (year==2012 | year==2007)
replace sldl="108" if sldl=="Windsor-Rutland 2" & sab=="VT" & (year==2012 | year==2007)
